package com.LittleHan.crm.exceptionHandler;

import com.LittleHan.crm.exception.ActivityDeleteException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class ActivityDeleteExceptionHandler {
    @ExceptionHandler(ActivityDeleteException.class)
    @ResponseBody
    public String activityDeleteException(Exception e){
        System.out.println(e.getMessage());
        return "";
    }
}
